work on check & mate