added falling and a buggy collision detection for falling.