added shared state to players for stack