refactor computer_player