Added an AI. Could still be buggy, needs extensive testing.