Modularizing the Player class