Add invalidation hook to player that is called every action.