Balls bounce off shapes and canvas edges with elastic collisions. Pause the simulation if things are moving too fast!