Made it so that it only takes one click of the green flag. The reason it took two clicks, is the code to reset it if it was a game over, went before the code to set game over to false. Thus, to fix the problem, I added a few blocks to make the code to reset if there is a game over come after the code to retry and set game over to false.
Made for beddy63 to improve his project. I think there are still a few bugs but I fixed the double clicking of the green flag.