moved player script to bottom