changed current player into if then else conditional statement