Implement check for checkmate