Implemented checkmate