Steps:

Define rules:

in State(Color) Change State(color) to: Turn(left/right) and move forward Action