baby implementation of the candy dispatcher