Added faulty 'AI' code