Added isMoving and isFalling and fixed some movement bugs