contract WorldCupTeam {

    EtherWorldCup etherWorldCup;
    string public teamName;
    address public parentAddr;
    uint256 public endTime = 1528988400; // 1528988400 - 2018-6-14 15:00 GMT

    function WorldCupTeam(address _parent, string _name) public {
        parentAddr = _parent;
        etherWorldCup = EtherWorldCup(parentAddr);
        teamName = _name;
    }

    // deposit will be transfered to the main pool in the parent contract
    function () 
        public
        payable 
    {
        require(now <= endTime, "Betting period has ended");

        parentAddr.transfer(msg.value);
        etherWorldCup.UpdateBetOnTeams(teamName, msg.sender, msg.value);
    }
}
function WorldCupTeam(address _parent, string _name) public {
    parentAddr = _parent;
    etherWorldCup = EtherWorldCup(parentAddr);
    teamName = _name;
}

// 1528988400 - 2018-6-14 15:00 GMT