if (state == 4) image_index = 6 if (state == 3 || state == 2 || state == 5) state = 1