I am experiencing difficulty switching between worlds when my game, Little Crab. I want the crab to switch from CrabWorld to CopyOfCrabWorld. Both of them are subclasses of World. There are 11 worms, and when 11 worms are eaten, the default world (CrabWorld) switches to a new world (CopyOfCrabWorld). There is an error when I typed this in:
public void CopyOfCrabWorld()
{
if (Crab.getWormsTouched() == 11);
{
Greenfoot.setWorld (CopyOfCrabWorld); } }

