public SolutionView(final BoardController board, String pathValues) {
		frame = new JFrame("Solution");
		nextButton = new JButton(">");
		frame.add(nextButton, BorderLayout.LINE_START);
		frame.add(nextButton, BorderLayout.LINE_END);
		currentPos = 0;
		pathValues = pathValues.substring(1, pathValues.length()-1);
		final String[] path = pathValues.split(", ");
		
		// What happens when the user clicks on the next field
		nextButton.addActionListener(new ActionListener() {

			public void actionPerformed(ActionEvent e) {
				if(currentPos<path.length){
				switch (path[currentPos]) {
				case "UP":
					board.moveUp();
					break;
				case "DOWN":
					board.moveDown();
					break;
				case "LEFT":
					board.moveLeft();
					break;
				case "RIGHT":
					board.moveRight();
					break;

				default:
					break;
				}
				currentPos++;
				}
			}
		});
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.setVisible(true);
	}