made the correct flag false if the student code produces and error or a loop