Abstracted some code in player class