Transferred rotateGravity to Room in preparation for collision refactoring