Move player-centric stuff to own file