Added changeable grid size

Made the grid capable of any size (set to 5 at the present).