modified the stopGame method to throw an event