physics code cleaning
better physics integration into the game loop