Add checking for check mate and stale mate

Adds a function to the board class that automatically calculates the
current state of the board: none, checkmate, or stalemate.