fixes king bug, creates another bug