added a return of the final move