Add victory condition--including rewinds

In case of halmate, user can rewind to see winning moves.