Added toby's game switch code