Refactored computer_chooses_position funcion. Not working properly