code for HfG game menu