broke up getMove() into smaller functions