    function setFinalPrice(uint256 _value) public payable byOracle inState(State.CLOSED) {
        finalPrice = _value;
        emit FinalPriceSet(finalPrice);
        if(finalPrice > initialPrice){
            result = UP;
        }else{
            result = DOWN;
        }
        if(guesses[result].guesses_number > 0){
            state = State.PLAYERS_WIN;
            splitJackpot = getBalance()/guesses[result].guesses_number;
            emit PlayersWin(result, splitJackpot);
        }else{
            state = State.OWNER_WIN;
            emit OwnerWins(owner);
        }
    }