Logic completed but computer algorithm not really perfect,because what it does is to block the user. Now user-user and user-computer can play