added board creation and winner check