I am creating a 2d platforming game, where if you hit the lava it sends to a death/lose screen. However, when this happens I cannot reset the world nor terminate the program, and I have to use task manager to close greenfoot and restart my computer before I can open it again. I am using and if to see if its touching the lava, then Greenfoot.setWorld(new dead()). In the method where the characters jumps there is a lot of addition and reseting of variables so I am wondering if thats why its crashing, or if there is something else I should do.