implemented gravity, major change in code handling falling, several bug fixes