backup before revert
Updated Check/CheckMate conditions with correct movement