How does a Rational Agent Act in an Epidemic?