Added equation for move speed