added food position into snake grid

Added an event listener and changed my food position onto the snake grid on my snake project.