getting king's position