Add xarrowspeed and yarrowspeed as paramiters on the hit function