Implemented gravity behaviour to the player.

This still needs to be merged with the proper player api.