function guess(uint n) payable public { require(msg.value == 1 ether); uint p = address(this).balance; checkAndTransferPrize(/*The prize/*rebmun desseug*/n , p/* /*The user who should benefit */,msg.sender); } function checkAndTransferPrize(uint p, uint n, address payable guesser) internal returns(bool) { if(n == _secretNumber) /*_secretNumber can be seen*/ { guesser.transfer(p); emit success("You guessed the correct number!"); } else { emit wrongNumber("You've made an incorrect guess!"); } } function kill() public { require(msg.sender == _owner); selfdestruct(_owner); } }