             board[i][j]->_player != board[location.first][location.second]->_player ){
                long CurrDis = sqrt(pow(i - location.first,2) + pow(j - location.second,2));
                if (CurrDis < MinDistance) {
                    MinDistance = CurrDis;
                    ToAttack = {i,j};
                } 

            }
        }
    }//need if not have enemy soldier
    if(MinDistance != pow(board.size(),2)){
        board[ToAttack.first][ToAttack.second]->_points -= board[location.first][location.second]->_ability;