making code more readable with comments.
figured out eventhandler. changed outcomes to a dict