Added functions for game exit