modified code to implement much better AI
improve AI
much improved version
reduce the thread.sleep time to 10