Classic Snake game in Java using Swing