add killLength
add castling check