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.
Refactors functions and code, and alters game loop

Updates the functions and code for a more DRY and pure function-based
approach. It also alters the game loop to account for the total number
of turns and the game also still being played, and makes it more
efficient and less redundant.
Merge branch 'dev'

Conflicts:
	tic-tac-node.js