We are referring to ray buffers A and B as rayBuffers[0] and rayBuffers[1] now. This way we can cycle between them using the % operator.