public Solver(WordSearch wordSearch)
	{
		this.solutions = new HashSet<>();

		char[][] grid = wordSearch.getGrid();
		String[] words = wordSearch.getWords();

		next:
		for (String word : words)
		{
			for (int x = 0; x < grid.length; x++)
			{
				for (int y = 0; y < grid[x].length; y++)
				{
					for (Direction d : Direction.values())
					{
						char[] letters = getLettersFromGrid(d, x, y, word.length(), wordSearch);
						if (letters == null) continue;
						if (isEqual(letters, word))
						{
							solutions.add(new Word(word, d, new Point(x, y)));
							continue next;
						}
					}

				}
			}


		}
	}