comp move func

finishing computer move func