public static void updateLearning(int action){
		try {	// Try to read values from the file
			BufferedReader reader = new BufferedReader(new FileReader("learn.txt"));
			String line = null;

			line = reader.readLine();
			int planetsL = Integer.valueOf(line);
			line = reader.readLine();
			int shipsL = Integer.valueOf(line);
			line = reader.readLine();
			int growthL = Integer.valueOf(line);
			line = reader.readLine();
			int fleetL = Integer.valueOf(line);

			switch (action){
				case -1 : --planetsL;
					break;
				case 0 : --growthL;
					break;
				case 1 : ++planetsL;
					break;
				case 2 : --shipsL;
					break;
				case 3 : ++fleetL;
					break;
				default : break;
			}
			try {
				PrintWriter writer = new PrintWriter("learn.txt", "UTF-8");
				writer.println(planetsL);
				writer.println(shipsL);
				writer.println(growthL);
				writer.println(fleetL);
				writer.close();
			}
			catch (Exception ee){
				System.out.println(ee);
			}
		}
		catch (Exception e){
			System.out.println(e);
		}
	}