Modified the code to respond on player