game engine refactor

metho run switch fix
Game engine refactor