#include "GameState.hh" bool Player::updatePosition (Coordinate p) { if (!state.isValidCoordinate(p)) { // out-of-bounds return false; } else { // valid position = p; return true; } }