private void work(Player player) {

		CourseBook playerBook = player.getBook();

		if(player.getEnergy().getEnergy() != 0)
		{
		    StringManager.outPutText(StringManager.getString("exhausted")); 
		    return;
		}
		//If the next double is less than the lab chance, the player will learn a new lecture
		if(Randomizer.getRandom().nextDouble() < LAB_CHANCE)
		{
			Lecture lect = playerBook.getUndoneCourse(Ressource.listCourse);
			player.getItemHolder().getWorkingManager().addKey(new LectureItem(lect));
			playerBook.getLectures().add(lect);
			player.getEnergy().setEnergy(player.getEnergy().getEnergy()-1);
			StringManager.outPutText(StringManager.getString("coursetab") + ": " + lect.getTitle());
		}
		else
		{
			Lab lab = playerBook.getUndoneLab(Ressource.listLab);
			if(player.getItemHolder().getWorkingManager().containskeyOf(lab.getTitle()))
			{
				player.getItemHolder().getWorkingManager().addValue(new LabItem(lab));
				player.getEnergy().setEnergy(player.getEnergy().getEnergy()-1);
				StringManager.outPutText(StringManager.getString("labtab") + ": " + lab.getTitle());
			}
			else
			{
				StringManager.outPut("nocorrespondinglect");
			}
		}
	}