thank you, why does the "game over" pop up as soon as i press run rather than when the fish is eaten?
Insufficient data to ascertain.
You need to show the block of code that the block given above is enclosed within or, if the block given is the complete code for a method, the block of code that contains the call to this method.