Abstracts the initialize and squares method to be flexible for any board size