added framework for AI and changed action generation + equipment code