An AI solver for 2048 puzzle