Write iterateUpToSevenAway