Added helper function for game mode