add game main loop in GameMakerClient