solves (X)emacs games