Refactor player movement and velocity into physics class