capturing clicked id and switching players now working