Refactored ColorMask setup
Well, that was hard. Implemented dark squares