How slow is it? If it's slow, it's slow because either (1) computing Board[i][j]
is slow or because (2) system("clear")
is slow or because (3) appending chars to a stringstream is slow.
1 would be the case if you used a bad datastructure for whatever Board is.
2 could be the case.
3 is probably not the problem -- stringstream implementations are generally slow on a lot of systems. They'll acquire a mutex before doing their operation, which means that appending chars is pretty expensive. However, the board is so small that you wouldn't think this to be a problem. There are only about 7500 characters there, so even if each append took 100 ns it would take under a millisecond to build the stringstream.