made the boolean condition positive so swapped the blocks around