check when the game win/lose then back to level screens