Collision detection, updating visibility area, many many optimisations and tons of small stuff.