added code to check for valid channels while flipping
added code to check for valid channels while flipping

born2late/afterstep-devel,born2late/afterstep-devel,born2late/afterstep-devel,born2late/afterstep-devel,born2late/afterstep-devel