Final assignment for AP CS '14. Java animation of a comet hurtling through space