Simplify code by using Maurits van der Schee's idea of rotating the board and having only one "shift" method.