did som refactoring, added possibility to get board as string