added background, added tie's, improved AI