Fixed script selector so it so it selects the right script when it is your turn