refactor gamestatus