For some reason even though I changed the value of the isGameOver boolean to true, the method still keeps on running. Is there a problem with my code or anything?
For some reason even though I changed the value of the isGameOver boolean to true, the method still keeps on running.
You changed the value of the isGameOverboolean in a world to true, but that would not be in the running world. You changed it in another world that you created on the previous line.