gravity correction #1
moved instability handlers
wayward returning
moved player functionality away from main loop