A Computational Theory of the Subjective Experience of Flow