screen = pygame.display.set_mode(size) draw_board() pygame.display.update() game_over = False MAX_MOVES = b.COLS * b.ROWS move_count = 0 while not game_over and move_count < MAX_MOVES: for event in pygame.event.get(): if move_count % 2 == 0: #Computer move comp_1.move() print(b.toArray()) draw_board() pygame.display.update() move_count += 1 if b.has_winner() == True: print('Computer wins :(') game_over = True break if event.type == pygame.QUIT: sys.exit() if event.type == pygame.MOUSEMOTION: posx = event.pos[0]