Fixed the collision detection code. Restored dynamic lighting