Optimized the Boggle Solver class to use the cleaner API