public Tile getTile (int x, int y) {
		if (x < 0 || x >= width || y < 0 || y >= height) return Tile.voidTile;
		if (tiles[x + y * width] == Tile.col_grass) return Tile.grass;
		if (tiles[x + y * width] == Tile.col_floor) return Tile.floor;
		if (tiles[x + y * width] == Tile.col_wall_1) return Tile.wall_1;
		if (tiles[x + y * width] == Tile.col_wall_2) return Tile.wall_2;
		return Tile.voidTile;
	}