I'm assuming this is testing code, if not then it's weird that you're not returning an `EndState` here.