puzzle UI
Calculate puzzle min depth using BFS