public Tile getTile(int x, int y) {
        if (x < 0 || x >= width || y < 0 || y >= height) {
            return Tile.voidTile;
        } else if (tiles[x + y * width] == 0xff7F7F7F) {
            return Tile.block;
        } else if (tiles[x + y * width] == 0xffED1C24) {
            return Tile.finish;
        } else {
            return Tile.voidTile;
        }
    }