added square class so that the board can be displayed in the terminal