Simple Ruzzle (Boggle) simulator in java