Separated physics concepts from main loop.
Separated physics concepts from main loop.