Started dividing client and server code. Reworked the way the Grid is created and accessed.