Fixes getMove() question and modifies game loop

Fixes the getMove() function to prompt the appropriate piece, instead
of locking it to the player’s piece (for testing purposes and
modularity). Also optimizes the game loop to only run certain code on
the player’s turn.