Added game code generation and game redirecting