added tracking of turn