Improved structure.

Rearranged some objects. The square's update() method is no longer
called from the JPanel's paintComponent().