working on restart and error detection

errors are corretly detected, the game is not yet restarted