refactoring, extracted all box2d definition into a class