public Tile getTile(int x, int y) {
		if (x < 0 || y < 0 || x >= width || y >= height) {
			return Tile.water;
		}
		if(tilesInt[x + y * width] <= 0){
			return Tile.stone;
		}else if (tilesInt[x + y * width] <= 2){
			return Tile.rocks;
		}else if (tilesInt[x + y * width] <= 3){
			return Tile.flowers;
		}else if (tilesInt[x + y * width] <= 4){
			return Tile.sand;
		}else
		return Tile.grass;
	}