When you put it in your project, create lists called x, y, and direction. Their names have to be exactly that.
Updated version: https://scratch.mit.edu/projects/177120892/