Refactored physics code into physics presenter.