Update: Made things more dynamic to accomadate new board widths. Board
widths should be powers of two and no less than 8.