created combined snake and crab method, sets motor values