Made code for castling colourblind.