public Map(int[][] values, Tuple startPoint, Tuple endPoint, Tuple winning){
		if(startPoint.getX()>values.length || endPoint.getX()>values.length || startPoint.getY()>values[0].length ||
				endPoint.getY()>values[0].length){
			throw new IndexOutOfBoundsException();
		}
		start = startPoint;
		end = endPoint;
		height = values[0].length;
		width = values.length;
		mapMatrix = values;
		mapMatrix[start.getX()][start.getY()] = VISITEDCODE; //IF YOU START SOMEWHERE YOU VISIT IT
		WIN_POSITION = winning;
	}