allow non-square grid sizes

xsize and ysize now are static constants to set dimensions of the grid.