Given a window, coordinates, and dimensions, this draws a rectangle and puts text into the center of a window. This redraws the all the buttons at expose or redraw events. It also updates the status bar. This initializes most of the window stuff for the program.
Comments go throughout.
It looks for the same events as the global window. 2-d array that keeps track of where the food is. This is the main body of the program where the real work gets done. It could probably be broken down into smaller subroutines, but this is the way I have it for now. There are more comments throughout this section.