def make_AI_move(game, color): set_title(SCREEN_TITLE + ' - Calculating move...') new_game = chess.make_move(game, chess.get_AI_move(game, AI_SEARCH_DEPTH)) set_title(SCREEN_TITLE) print_board(new_game.board, color) return new_game