switch player to shared pointer