Checkmate working perfectly