Checkmate functionality added