Wrote some code for player falling