I feel like I used up all of today's brainpower to learn about state machines