Flow (as defined by Mihály Csíkszentmihályi) is between frustration and boredom because either the activity is too difficult or too easy.