n-dimensional scrabble engine in Java