I am making a battleship game. and when i open it it says "the constructor for this world is taking a long time. you may have an infinite loop." the weird thing is if i keep restarting greenfoot over and over, eventually it works. and then if i reset it, the whole problem comes back. any idea what the error could be? i definitely have no infinite loops. i checked that.

