Refactored choosing computer player logic