Trouble with Robot

Why doesn't the arduino run the proper sketch with a 9v via the vin port?