refactor spec file, added AI to the game