private void ThrowIfPositionNotClear(Position position) { if (!planet.IsClear(position)) { throw new ObstacleOnWayException(string.Format("Can't move to (%0, %1) due to an obstacle on the planet", position.X, position.Y)); } }