def beats(one, two):
    """Determines winning move.
    Output: Returns True if one beats two."""
    return ((one == 'rock' and two == 'scissors') or
            (one == 'scissors' and two == 'paper') or
            (one == 'paper' and two == 'rock'))