Working version prints results to royal.txt