Adds getMove function and consolidates code

Adapts for more DRY programming methods; adds a getMove() function to
get the player’s choice for a move; and consolidates several pieces of
code and functions.