Moved while loop logic into getPlayerMoves method, added recursion to switch between players