extract empty-cell value to const
fix param name
make ConsoleOutput agnostic to the size of the grid