Click "See inside" to see the code and answer the questions in the yellow comment box
Based on Project 3 from "Designing Digital Games" by Derek Breen