Added more to the render method and changed the pixels to tiles