added checkmate, stalemate functionality
dunno