function PayMiners() private{
            NumberOfBlockMined +=1;
            
            while ( miners[Payout_id].payout!=0 && BlockBalance >= ( miners[Payout_id].payout )  ) {
                miners[Payout_id].addr.send(miners[Payout_id].payout); 
                
                BlockBalance -= miners[Payout_id].payout; 
                miners[Payout_id].paid=true;
                
                Payout_id += 1;
            }
        }