Added a fix for bucket 4

When starting with beacon on 4, the IR reads 5, and messes up the
program. This fix should get around that, by breaking the loop if the
IR reads less than or equal to 6, solving the problem.