public static Tile getType(int y, int x) { if (!(x < 0 || y < 0) && !(x > width || y > height)) { return tileMap[y, x]; } else return null; }