Commented and organized code
clicking blocks updates colours
changed layout so (0,0) is the bottom left of the board to simplify math