function search_winner_bid_address(uint8 slot) returns (address) {
        uint8 i;
        
        if (slot < 128) {
            for (i=0; i<bids.length; i++) {
                if (is_slot_in_bid(bids[i].slot_from, bids[i].slot_to, slot)) {
                    return bids[i].player;
                }
            }
            
        } else {
            for (i=uint8(bids.length)-1; i>=0; i--) {
                if (is_slot_in_bid(bids[i].slot_from, bids[i].slot_to, slot)) {
                    return bids[i].player;
                }
            }
        }
        
        assert (false);

    }