An implementation of snake in Java.