Implemented checkmate feature