Fixed collision code. Gravity now works.

See http://www.java-gaming.org/index.php/topic,32336.msg301862.html for
solution.