Modified the function sevens in a row