Realized Statepattern in package turn