Move player logic to its own prototype