refactoring and starting computer player decision