Update masturbation.as

Simplified boolean function.