states have an init function called when state is defined on game