Implemented gravity. Needs tweaking.