@Override
	public void gerenciaMsgsUDP(String msg){
		
		//Logger.log("SnakeProtocol: "+msg);
		
		if(msg.startsWith(PREFIX_RESPONSE_ALL_MOUSES)){

			//System.out.println("UDPSnkMouses: "+msg);

			String[] parts = msg.substring(PREFIX_RESPONSE_ALL_MOUSES.length()+1).split(" ");

			//for(int i = 0; i<parts.length; i++){
			//If UDP can came first
			for(int i = 0; i<players.size(); i++){

				String[] pos = parts[i].split(",");

				String mx = pos[0];
				String my = pos[1];

				snakePlayers.get(i).getArrow().move(Integer.parseInt(mx), Integer.parseInt(my));
				
			}


		}else if(msg.startsWith(PREFIX_POSITIONS)){
			
			String[] parts = msg.substring(PREFIX_POSITIONS.length()+1).split(" ");
			
			int i = 0;
			
			for(SnakePlayer player:snakePlayers){
				
				String[] positions = parts[i].split(";")[0].split(",");
				
				int x = Integer.parseInt(positions[0]);
				int y = Integer.parseInt(positions[1]);
				
				player.setX(x);
				player.setY(y);
				
				String blocks = parts[i].split(";")[1];
				player.setBody(blocks);
								
				i++;
			}
			
			/*int x = Integer.parseInt(msg.substring(0,4));
			int y = Integer.parseInt(msg.substring(4,8));
			int bodysize = Integer.parseInt(msg.substring(8,11));

			//for(int i=0;i<bodysize;i++){}
			//leio de quatro em quatro blocos
			int[] body = charTo4Ints(msg.charAt(11));*/

		}

	}