Add initial pyralis engine state machine idea