Generate returns a list of commands

Modified the generate method so it returns an ArrayList of strings that
each have one move or turn command.