improved AI. added tie message