My implementation of 2048 in Java.