alarm[0] = (60 + random(320)) if (state == 1 && frozen == 0) { facing = (-facing) state = 2 image_index = 0 }