Collision detection, gravity, and piece anchoring implemented.