check/checkmate working