final version with rules, score and no errors pop up