cleaned up a bit of player script