refactor play human and play game