Implemented night cycle, and fixed collision detection bug.