add gameloop for mode 2