restructuring code and box2d problems