setState(state): Sets the state to the specified state value. States
are stored as constants (UP and DOWN). When the state is changed, the
mole’s state property is modified, and the mole’s image is modified to
reflect the current state. If the state is set to UP, a timer begins, which
will be used to track how long the mole is visible.