Simplified conditionals, changed reactions to Reactions, called class variables correctly