Add class Food.java and rewritten some part of code.
if snake ate the food then it  grow.