Improved physics for the player, not fully working yet.