added valid and invalid walking tests for crab and butterfly. extracted
the validation for walking to a method to call in both cases since
walking behavior is the same.