Bugfix in Borderdetector

green was checked twice in isBlack(). Should have been green and blue.