intermediate good result with (L+R = 2+2 B L L L B B R R R B)
corrected error in previous commit and added some extra checks