I\'m a beginner on AI and I\'m trying to code my own AI from scratch with python to fix what I saw in theory. When I do everything manually it works fine, but when I try to crea