Almost done with player physics. I'm putting this here so I can fix it when I break it.