some protections were made and can now calculate distance on walk arraylist