added type annotations to helper functions in showBoard