UPDATE: fix bug issue with growing snake when the fruit is near the wall.