An implementation of an ai for the game 2048