End key to reset the loop if you get stuck. The game was supposed to reset itself once a condition was met to avoid endless wandering. Unfortunately fixing a different bug broke that part of the code. Is fixed now but not in final submission sadly. Peace.