Added a flag to check if the game has started or not