public Tile getTile(int x, int y) {
		if(x < 0 || y < 0 || x >= width || y >= height)return Tile.Tilevoid;
		if (tiles[x + y * width] == 0xff00ff00)
			return Tile.TileGrass;
		if (tiles[x + y * width] == 0xffffff00)
			return Tile.TileGrass_flowers;
		if (tiles[x + y * width] == 0xff7f7ff0)
			return Tile.TileGrass_rocks;

		return Tile.TileGrass;

	}