Make lastScreenBufferIndex an array