Console based Boggle game in Java