if makemove(returns the value falsethen there was problem with the and values you passed it the continue statement will send the execution back to the start of the while loop on line to ask the player for xy coordinates again finding sunken treasure chest elseif moveresult ='you have found sunken treasure chest!'update all the sonar devices currently on the map for xy in previousmovesmakemove(theboardthechestsxydrawboard(theboardprint(moveresultif makemove(didn' return the value falseit would have returned string of the results of that move if this string was 'you have found sunken treasure chest!'then all the sonar devices on the board should be updated to detect the next closest treasure chest on the board the xy coordinates of all the sonar devices are in previousmoves by iterating over previousmoves on line you can pass all of these xy coordinates to the makemove(function again to redraw the values on the board because the program doesn' print anything new herethe player doesn' realize the program is redoing all of the previous moves it just appears that the board updates itself checking if the player has won if len(thechests= print('you have found all the sunken treasure chestscongratulations and good game!' break remember that the makemove(function modifies the thechests list you sent it because thechests is listany changes made to it inside the function will persist after execution returns from the function makemove(removes items from thechests when treasure chests are foundso eventually (if the player keeps guessing correctlyall of the treasure chests will have been removed rememberby "treasure chestwe mean the two-item lists of the xy coordinates inside the thechests list when all the treasure chests have been found on the board and removed from thecheststhe thechests list will have length of when that happensdisplay congratulations to the playerand then execute break statement to break out of this while loop execution will then move to line the first line after the while-block post questions to