Update player.cpp

Adds check to stop the player from being able to jump or sprint while crouching under an object.