changed board to dynamically create the winning patterns