fixed bug when castle move results in dupe entries in moveHistory