Tweaked gravity and fixed collision detection bug, although the detection isn't quite perfected.