2048: Engine and Solver in Java