Vastly increased speed of editor by only rendering cells that contained tiles.
Fixed bug where the indexLayers method wasn't working correctly.