Refactored squares and board.