Moved start/end position stuff to the Grid class