made speed property of player component