Began implementing STATE machine in main.c