function play_game(uint8 play) internal{
        require(readyTime[msg.sender] < block.timestamp);
        require(play <= 2);
        
        uint8 comp=uint8(uint(keccak256(block.difficulty, block.timestamp))%3);
        uint8 result = compare(play, comp);
        
        record[msg.sender] = result * 9 + play * 3 + comp ;
        
        if (result == 2){ 
            require(ERC20Basic(tokenAddress).transfer(msg.sender, amount));
        }
        
        else if(result == 1){ 
        }
        
        else if(result == 0) 
            readyTime[msg.sender] = block.timestamp + cooldown;
    }