print method added in Board class