computer player logic and comments

added