white castling logic code jam