added maingame controller