updating player script