Cleaned up logic for option pricing and buy logic