Added Gravity

Created gravitate function and gravity variable. Gravitate gets called
at every loop and adds gravity to the y value of the player.