Boxes' collision detection and movement are implemented.