move box2d code to ball.js