Changed some of the syntax in rendering the tiles.