public void MovePlayer(Point point) { if ((point.X < BoardWidth - 1 && point.X > 0) && (point.Y < BoardHeight - 1 && point.Y > 0)) { ThePlayer.Move(point); } else { EndGame("You collided with the wall!"); } }