protected void receive(String line) {
		if(line.startsWith(FILE_START_MAP)){
			String name = TEMP_FOLDER_PATH+"map.smap";
			FileTools.saveFromInput(new File(name), in, bufferSize);
			Map map = new Map(new File(name));
			game.init(map, this);
			send(READY);
			msg = "Now waiting for other players to be ready";
		}
		else if(line.startsWith(FILE_START_SKIN)){
			String name = TEMP_FOLDER_PATH+line.substring(FILE_START_SKIN.length())+".sskin";
			FileTools.saveFromInput(new File(name), in, bufferSize);
			game.addPlayer(new File(name), line.substring(FILE_START_SKIN.length()));
		}else if(line.startsWith(READY)){
			game.start();
		}else if (line.startsWith(PLAYER_NUM)){
			player_connected = Integer.parseInt(line.split(" ")[1]);
			max_players = Integer.parseInt(line.split(" ")[2]);
			msg = "Currently "+player_connected+"/"+max_players+" players connected...";
		}else{
			if(line.contains(MORE)){
				String[] lines = line.split(MORE);
				for( String s : lines){
					game.input(s);
				}
			}else
				game.input(line);
		}
	}