added connect4 model logic