Algo for playnig 2048, based on framework https://github.com/gabrielecirulli/2048. Just clone framework and replace ai.js. Now, best recors is 22984.