Suggestion on Computer move

pseodo code