Integrated with Mini Game. Global event call work

Code not tided yet though. Pls test. Just let the game run with the
server.