Xenon does things that make her feel good and avoids things that make her feel bad. Her behaviors are consistent with Edward Thorndike's law of effect.
The law of effect states that responses that produce a satisfying effect in a particular situation become more likely to occur again, while responses that produce a discomforting effect are less likely to be repeated.