refactoring PuzzlesView.drawLattice()