Created first itteration of State Machine, works