@Override
	public void trataMsgTCP(Usuario usuario, String msg) {

		//TODO Separar em hash de prefixos
		Logger.log("ListenerGameRoom: "+msg);
		
		if(msg.startsWith(PREFIX_REQUEST_SNAKE_ROOMS)){

			StringBuffer response = new StringBuffer();
			response.append(PREFIX_RESPONSE_SNAKE_ROOMS).append(" ");
			
			Map<String,ListenerGame> salas = rooms.get(PREFIX_SNAKE).getRoomIDGame();

			if(!salas.isEmpty()){
				
				for(Entry<String, ListenerGame> entry : salas.entrySet()){
					
					String roomName = entry.getKey();
					ListenerGame room = entry.getValue();
					
					//Prefix here is Unnecessary
					response.append(PREFIX_SNAKE).append(",");
					response.append(roomName).append(",");

					ListenerGame lg = room;
					response.append(lg.getOwner()).append(",");
					response.append(lg.getPrivacy()).append(",");
					response.append(lg.getCurrentPlayers()).append(",");
					response.append(lg.getMaxPlayers()).append(" ");
				}

				sendTCP(usuario, response.toString());
				
			}

		}else if(msg.startsWith(PREFIX_REQUEST_CREATE_ROOM)){

			createRoom(usuario, msg);

		}else if(msg.startsWith(PREFIX_REQUEST_JOIN_ROOM)){

			String[] part = msg.split(" ");

			//Nao preciso gamecode
			String gameCode = part[1];
			String roomName = part[2];

			Logger.log(usuario.getInfo().getName()+" esta tentando entrar na sala "+gameCode+"/"+roomName);

			ListenerGame lg = rooms.get(gameCode).getRoomIDGame().get(roomName);

			if(lg.getCurrentPlayers()<lg.getMaxPlayers()){

				lg.joinUser(usuario);

				clientMayJoinRoom(usuario, roomName, lg.getPrivacy(), lg.getMaxPlayers(), lg.getCurrentPlayers(), lg.getPlayers());

			}else{

				//clientMayNotJoinRoom(usuario, roomName);
			}

		}else{

			String[] parts = msg.split(" ");

			String prefix = parts[0];		

			ServerRoom room = rooms.get(prefix);


			if(room!=null){

				//Trata mensagens vindas dos usuarios

				String roomID = parts[1];				

				ListenerGame lg = rooms.get(prefix).getRoomIDGame().get(roomID);
				
				Logger.log("ListenerGameRoom: "+msg);

				String submessage = msg.substring(prefix.length()+1+roomID.length()+1);
				lg.trataMsgTCP(usuario, submessage);

			}else{
				Logger.log("Wrong Room: "+prefix);
			}
		}

	}