Switch statement for directions + beautify code

Allowed all directions represented as positive integers. Currently, the
direction is from 0 - 7 inclusive to represent directions clock-wise.
Noted issues with columns reaching beyond max, and fixed some issues
with that (a useless if statement was taken out to prevent columns from
restarting when traversing).

row and column limit is checked before the switch statement, now.