public void run()
	{
		sendRulesToPlayers();
		Connection activePlayer = players.get(0);
		while(true)
		{
			row = null;
			column = null;
			
			row = activePlayer.received.pollLast();
			System.out.println("%%%%%"+row);
			column = activePlayer.received.pollLast();
			System.out.println("%%%%%"+column);
		
			activePlayer.send(YOUR_TURN);
	
			sendMessageToPlayers(WAITING_FOR+";"+activePlayer.playerID, activePlayer);
			if(row!=null && column != null){ 
				if(!row.matches("[0-9]+") || !column.matches("[0-9]+"))
					activePlayer.send(INVALID_COORDINATES);
			
				if(used_cords.contains(row+";"+column))
					activePlayer.send(CORDINATE_ALREADY_USED);
				else{
					activePlayer.send(OK); 
					used_cords.add(row+";"+column);
					sendMessageToPlayers(COORIDANTES_TO_OTHER_PLAYERS+";"+activePlayer.playerID+";"+row+";"+column, activePlayer);
				}
			}
			if(EXIT.equalsIgnoreCase(activePlayer.received.pollLast())){
				players.remove(activePlayer);
				sendMessageToPlayers(EXIT+";"+activePlayer.playerID, null);
				activePlayer.endSender();
				
			}
			if(row!=null && column!=null)
				activePlayer = nextPlayer(activePlayer);
		}
	}