Added a renderTile method and removed the old render