ia implemented
but it doesn't work
debugging ai