fixed the way the tiles are rendered