added computer player class
removed duplication