public bool IsInRange(int xCoordinate, int yCoordinate) { return Math.Abs(MapX - xCoordinate) <= 50 && Math.Abs(MapY - yCoordinate) <= 50; }