Fixed bug checking validity of castle moves