Classic Snake game in Java