Logic Bug
I noticed that when the user has pressed (and has revealed) all cells that are not mines the window showing him as a winner does not appear. As a result, there is no action the user can do but press a mine box and lose the game or exit the game. Therefore he can never win. I found the reason behind this and I created a pull request in order to prevent this problematic situation.
I ran the code in IntelliJ IDEA 2021.1.3 (Ultimate Edition) x64 on Windows 10.
I would appreciate it if you could confirm this and answer to me.
User must had won because mines are 10 in total

Instead he lost because he pressed an existing mine (no other choice)

Logic Bug
I noticed that when the user has pressed (and has revealed) all cells that are not mines the window showing him as a winner does not appear. As a result, there is no action the user can do but press a mine box and lose the game or exit the game. Therefore he can never win. I found the reason behind this and I created a pull request in order to prevent this problematic situation.
I ran the code in IntelliJ IDEA 2021.1.3 (Ultimate Edition) x64 on Windows 10.
I would appreciate it if you could confirm this and answer to me.
User must had won because mines are 10 in total
Instead he lost because he pressed an existing mine (no other choice)