The player can no longer jump in mid air.

The code is horribly messy atm, I will make it prettier tomorrow.