Boggle Implementation for Algorithms class.