Changed the Grid system to use a Coord class to make things easier later