I have completely rebuilt the interface.
Removed gaps.
Made grid always look like squares.
Variables gridWidth and gridHeight replaced by gridSize.
GridSize should adapt to different screen sizes.