Finally, a dialogue works! Only a few things are left to make sudoku GUI.