I couldn't make it very complicated because of how Scratch works, so my only input was distance to food ahead.