added logging to swap object and changed to getPlayerUID