How can I open or close this mini-game automatically?