2048 in Java