how is counter supposed to ever equal 20? Only if you press "space" 20 times, and how is the rocket supposed to move down? Even if you put counter++; in the act, it still only calls the method spawnRocket() when you press space which by then counter doesn't and never will equal 20.