move player firebase stuff to player.js