I am surprised that stalemate detection would be challenging. Iterate over the current player's pieces and count the number of available moves. If they are fewer than 1 -> stalemate. What could I be missing? I assume that you have something that detects valid moves as the board tiles are properly highlighted when a piece is selected.
In terms of priorities , probably not the most urgent issue.