chess, fix undo on first move

Authored by bcoudoin.