1) passing in deltatime and ticks to statemachine update