Implemented the concept of game modes and gave the responsibility of running scripts to the Cup controller.