Classic Snake in Java