A simple snake game in java -Well Documented