moved game login into game_logic helper