More modularization plus change the game to finish after 10 objects are popped