snake game written in java with swings