public Tile getTile(int x, int y) {
		if (x < 0 || x >= width || y < 0 || y >= height) {
			return Tile.voidTile;
		}
		if (tiles[x + y * width] == 0) {
			return Tile.grass;
		}
		if (tiles[x + y * width] == 1) {
			return Tile.flower1;
		}
		if (tiles[x + y * width] == 2) {
			return Tile.rock;
		}
		if (tiles[x + y * width] == 3) {
			return Tile.tree;
		}
		return Tile.voidTile;

	}