working on check and checkmate