moved the code to get the player and computer choices into their own functions and created tests for them