An AI (and a custom engine to run it in) for 2048