alter sphero code to follow robot pattern