fixed one line that broke castling