Move events from server.js to player.js