Add test for making a king, fix related bug in determining move types.