added playerOptions function