fixed some bugs with the kings moves