public Tile getTile(int x, int y){
		
		
		if (x < 0 || y < 0 || x >= width|| y >= height ) return Tile.voidTile;
		if (tiles[x + y * width] == Tile.color_grass) return Tile.grassTile;
		if (tiles[x + y * width] == Tile.color_pathUp) return Tile.pathUpTile;
		if (tiles[x + y * width] == Tile.color_pathRight) return Tile.pathRightTile;
		if (tiles[x + y * width] == Tile.color_bend1) return Tile.bend1;
		if (tiles[x + y * width] == Tile.color_bend2) return Tile.bend2;
		if (tiles[x + y * width] == Tile.color_bend3) return Tile.bend3;
		if (tiles[x + y * width] == Tile.color_bend4) return Tile.bend4;
		return Tile.voidTile;
	}