created naive checkmate detection that needs to be tested