Refactored logic for buy and stock commands into their own methods in the executor