Answer was off by two. Forgot to subtract 2 after the for loop terminated