Add proper jumping

The player will only jump if it is on the ground