Fixing player jumping refactoring bug