and(state[(k+1)mod 5]&lt;&gt;eating)then