The callback methods of the engine class are the ones that will finally control the player machine and check for collisions. They will also be responsible for what happens when a level has finished its fading out transition. We could also have checked for the winning conditions here, but have chosen to do it inside the OnUpdate
method of the game class. You see that there is no strict rule to it. And that is a good thing!