updated box2d from 2.1.2 to 3.1.0

* updated box2d from 2.1.2 to 3.1.0
* changed the style the nix expression was written in