2048 java solver