added new game funcationality and fix code generator