Rearranged various items. Added quadrants by 'color'. Fixed calculation of blue side in particular.