Optimised general render code

It now only recalculates CSS positioning when World.renderGrid()
actually renders something.