added last turn check to prevent unnecessary board resets