Java application using graphics to test object collision.