Improve display with multisampling.
Extract box2d code into helper functions.