Well, the 'ship' field in the container being picked up needs to be set to null in the 'if' block that has 'Greenfoot.isKeyDown("p")'. That would be the 'if' block that deals with picking up a container. The 'container' field of the crane object is set to that container being picked up within that 'if' block. Just add a statement to change the value of the 'ship' field of that container to 'null' there. Make sure that there is actually a container there before trying to set the field (it could be 'null' itself).

