Added functionality to pass button

alternates between player 1 and 2 on click.