2D physics experiments in Java