In a struct (or class), I know that I can add a function and then call it later.
struct State { int turnsLeft;