public void run() {
			while(!player.getSocket().isClosed()){
				try {
					String response = reader.readLine();
					if(response.startsWith("MY BET")){
						System.out.println("EMPEZANDO APUESTAS!!!");
						String rx_numbers = response.substring("MY BET ".length(), response.length());
						String rx_bet[] = rx_numbers.split(" ");
						System.out.println("Recibido de : "+ player.getName() +"\n\tSe juega: "+rx_bet[0]+"\n\tApuesta: "+rx_bet[1]);
						player.setCoins(Integer.valueOf(rx_bet[0]));
						player.setTotalCoins(Integer.valueOf(rx_bet[1]));
						if(player.getPosition()==0){
							playersThread[1].sendYourBet();
							playersThread[0].sendWaitBet();
						}else{
							playersThread[0].sendBetOf(playersThread[1].getPlayer().getName(),Integer.toString(playersThread[1].getPlayer().getTotalCoins()));
							playersThread[1].sendBetOf(playersThread[0].getPlayer().getName(),Integer.toString(playersThread[0].getPlayer().getTotalCoins()));
							int actualCoins = playersThread[1].getPlayer().getCoins() + playersThread[0].getPlayer().getCoins();
							if(actualCoins == playersThread[0].getPlayer().getTotalCoins() && actualCoins == playersThread[1].getPlayer().getTotalCoins()){
								playersThread[0].sendNoneWins(1);
								playersThread[1].sendNoneWins(1);
							}
							else if(actualCoins == playersThread[0].getPlayer().getTotalCoins()){
								playersThread[0].sendWinner(playersThread[0].getPlayer().getName());
								playersThread[1].sendWinner(playersThread[0].getPlayer().getName());
							}
							else if(actualCoins == playersThread[1].getPlayer().getTotalCoins()){
								playersThread[0].sendWinner(playersThread[1].getPlayer().getName());
								playersThread[1].sendWinner(playersThread[1].getPlayer().getName());
							}
							else{
								playersThread[0].sendNoneWins(0);
								playersThread[1].sendNoneWins(0);
							}
							playersThread[0].getPlayer().getSocket().close();
							playersThread[1].getPlayer().getSocket().close();
							
						}
					}else{
						
					}
				} catch (IOException e) {
					if(!player.getSocket().isClosed())
						e.printStackTrace();
				}
				
			}
			
		}