Fixed bugs with collision detection and stats display.