added gravity to the player