public void updatePlayer(NodePacket playerPacket) {
    	int found = getPlayerIndex(playerPacket.getName());
    	Player updateOpponent;
    	
    	if (found == -1) {
    		numOpponent++;
    		availablePlayer++;
    		updateOpponent = opponents.get(numOpponent-1);
    		updateOpponent.name = new String(playerPacket.getName());
    		updateOpponent.color = playerPacket.getColor();
    		updateOpponent.positionX = playerPacket.getPositionX();
    		updateOpponent.positionY = playerPacket.getPositionY();
    		updateOpponent.repaint();
    		opponents.set(numOpponent-1, updateOpponent);
    	} else {
    		updateOpponent = opponents.get(found);
    		updateOpponent.color = playerPacket.getColor();
    		updateOpponent.positionX = playerPacket.getPositionX();
    		updateOpponent.positionY = playerPacket.getPositionY();
    		updateOpponent.repaint();
    		opponents.set(found, updateOpponent);
    	}
    	
    	if (gameIsStarted) {
        	for (int i = 0; i < numOpponent+1; i++)
        	{
        	    if (isOverlap(updateOpponent,chairs.get(i),true))
        	        counterPlayerInChair++;
        	}
        	if (counterPlayerInChair == availablePlayer) {
                startTimerResult();
            }
    	}
    }