Added all the tile functions