player script fixes