refactored glide, jump, and ground check out of player