Refactor player speed into player class.