private Tile getTileAt(int x, int y) {
        try {
            x -= 10;
            y -= 10;
            x /= 15;
            y /= 15;
            if (x < 0 || y < 0 || x > 42 || y > 39) {
                throw new IndexOutOfBoundsException("Click was out of bounds: [" + x + "] [" + y + "]");
            }
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
        return tiles[x][y];
    }