Minor code cleaning.

Forgot to mention in previous commit that the allow_cell() function was
the cause of all the issues. Fixed it; the problem lay in the box check
part.