added a simple AI and random board generation