public int move(char move) {
		int retVal = 0;
		switch (move) {
			case 'w':
				board.up();
				System.out.println(board);
				break;
			case 'a': 
				board.left();
				System.out.println(board);	
				break;
			case 's':
				board.down();
				System.out.println(board);
				break;
			case 'd':
				board.right();
				System.out.println(board);
				break;
			case 'x':
				retVal = 2;
				break;
			case 'r':
				play();
				break;
			default: System.out.println("Invalid key, try again");
				break;
		}
		if (board.goal()) {
			System.out.println("Congratulations, you did it!");
			retVal = 1;
		}
		return retVal;
	}