nextShape method
void
nextShape()
Cycle to the next shape (works for both shape and image overlays)
Implementation
void nextShape() {
int nextIndex = (shape.index + 1) % OverlayShape.values.length;
shape = OverlayShape.values[nextIndex];
}