Refactored the cell width and height so that it can be used for different sized grids
Added some buggy click detection and added toggling of tiles.